package com.coincalf.exchange.service;

import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.baomidou.mybatisplus.service.IService;
import com.coincalf.exchange.entity.TradeArea;
import com.coincalf.framework.constants.Constant;

/**
 * <p>
 * 交易区 服务类
 * </p>
 *
 * @author qiang
 * @since 2018-05-12
 */
public interface TradeAreaService extends IService<TradeArea>, Constant {

    /**
     * 查询交易区域(缓存2分钟)
     * @param areaId 交易区域ID
     * @return
     */
    @Cached(name=CACHE_KEY_TRADE_AREA, expire = 120, cacheType = CacheType.LOCAL)
    TradeArea queryTradeAreaFromCache(long areaId);
}
